-- PixelFormatM
-- Create by zouyb
-- 位深度图片配置

module("PixelFormatM", package.seeall);

-- 模块初始化
local _init = false;
function init()
    if _init then return end
    _init = true;

	-- 默认设置格式为RGBA4444
    cc.Texture2D:setDefaultAlphaPixelFormat(cc.TEXTURE2_D_PIXEL_FORMAT_RGB_A4444);

    -- 设置格式为RGBA8888的图片路径
    local depth32_image_CSV = get_depth32_image_CSV();
    for i = 1, #depth32_image_CSV do
        cc.Texture2D:addDepth32Image(depth32_image_CSV[i].path);
    end
end
